package day2.Animal;

public class Dog extends Animal
{
    private int meekValue;

    public Dog() {
    }

    public Dog(String color, int age, int meekValue) {
        super(color, age);
        this.meekValue = meekValue;
    }

    @Override
    public String toString() {
        return "Dog{" +
                "meekValue=" + meekValue +super.toString()+
                '}';
    }

    @Override
    public void eat() {
        System.out.println("狗吃肉");
    }

    @Override
    public void sleep() {
        System.out.println("爬着睡");
    }
}
